﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace CoreMVC.Jurisdiction.Manage.Controllers
{
    [Authorize]  // 验证
    public class BaseController : Controller
    {
        // GET: /<controller>/
        //public IActionResult test()
        //{
        //    // 单个页面验证
        //    if (HttpContext.User.Identity.IsAuthenticated)
        //    {
        //        return View();
        //    }
        //     return RedirectToAction("Login", "Login");
        //}
    }
    
}
